package com.wuzhun.wxmp.common;

import java.io.Serializable;

/**
 *
 * @author baolin
 * @date 2022/12/03 14:24 下午
 */
public class ResultCode implements Serializable{
    private String errorCode;
    private String errorMessage;

    public ResultCode(String errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public String getErrorMessage() {
        return this.errorMessage;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public static final ResultCode SERVICE_EXCEPTION  = new ResultCode("5000", "服务异常，请稍候重试");

    public static final ResultCode INVALID_TOKEN = new ResultCode("5001", "无效Token");

    public static final ResultCode USER_NOT_LOGIN = new ResultCode("5002", "用户未登录");

    public static final ResultCode LOGIN_EXPIRED = new ResultCode("5003", "登录已过期");

    public static final ResultCode PARAM_WRONG  = new ResultCode("5004", "参数不合法");

    public static final ResultCode INVALID_DING_TOKEN = new ResultCode("5005", "无效Code");

    public static final ResultCode SETTING_NOT_EXIST  = new ResultCode("5006", "配置不存在");

    public static final ResultCode USERNAME_NOT_EXIST  = new ResultCode("5007", "用户不存在");

    public static final ResultCode USERNAME_OR_PASSWORD_WRONG  = new ResultCode("5008", "用户名或密码不正确");

    public static final ResultCode USERNAME_AND_PASSWORD_NOT_EMPTY  = new ResultCode("5009", "用户名或密码不能为空");

    public static final ResultCode OLD_PASSWORD_WRONG  = new ResultCode("5010", "旧密码不正确");

    public static final ResultCode NEW_PASSWORD_MIN_WRONG  = new ResultCode("5011", "密码长度不能小于6个字符");

    public static final ResultCode NEW_PASSWORD_MAX_WRONG  = new ResultCode("5012", "密码长度不能大于32个字符");
    public static final ResultCode NEW_PASSWORD_WRONG  = new ResultCode("5013", "两次密码输入不一致");

    public static final ResultCode NOT_UPLOAD_FILE = new ResultCode("5014", "未上传软件");

    public static final ResultCode UPLOAD_FAIL  = new ResultCode("5015", "服务异常，软件上传失败");

    public static final ResultCode USERNAME_EXIST  = new ResultCode("5016", "用户名已存在");

    public static final ResultCode IMAGE_CODE_WRONG  = new ResultCode("5020", "验证码不正确");

    public static final ResultCode ACCESS_DENIED  = new ResultCode("5021", "禁止访问");

    public static final ResultCode OLD_PASSWORD_NEW_PASSWORD_SAME  = new ResultCode("5022", "新密码和旧密码不能相同");

    public static final ResultCode PASSWORD_EXPIRE  = new ResultCode("5023", "密码已过期");

    public static final ResultCode LOGIN_LOCKED  = new ResultCode("5024", "用户名或密码错误次数超过5次，账户已锁定，请30分钟后再登录");

    public static final ResultCode ILLEGAL_REQUEST  = new ResultCode("5025", "非法请求");

    public static final ResultCode APP_ID_NOT_EXIST  = new ResultCode("5026", "AppId不存在");

    public static final ResultCode ERROR_SIGNATURE  = new ResultCode("5027", "签名不合法");

    public static final ResultCode AES_DECRYPT  = new ResultCode("5028", "解密内容出错");

    public static final ResultCode AES_CONTENT_IS_EMPTY  = new ResultCode("5029", "解密出的内容为空");
}
